package com.whjfxx.terminal.biz.param;

import com.whjfxx.terminal.utils.ValidateUtils;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by b.c on 2022/6/7 18:13
 */
@Data
public class AppParam {

    /**
     * id
     */
    private Long id;

    /**
     * 机构id
     */
    @NotNull(message = "机构id不能为空")
    private Long organizationId;

    /**
     * 应用名称
     */
    @NotBlank(message = "应用名不能为空")
    private String appName;

    @NotBlank(message = "客户名称不能为空")
    private String custName;

    @NotBlank(message = "联系人不能为空")
    private String custContact;

    @NotBlank(message = "联系电话不能为空")
    @Pattern(regexp = ValidateUtils.PHONE_PATTERN, message = "请输入正确的手机号码")
    private String custMobile;

    private String remark;


}
